package fund.people.controller;


import fund.cluster.service.impl.TbClusterServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import fund.people.entity.TbPeople;
import fund.people.service.impl.TbPeopleServiceImpl;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/tbstudent")
public class TbPeopleController {
    @Autowired
    private TbPeopleServiceImpl tbPeopleService;


    @GetMapping("/sex")
    public List<Map<String,Object>> findSex(){
        return tbPeopleService.findSex();
    }
    @GetMapping("/age")
    public List<Map<String,Object>> findAge(){
        return tbPeopleService.findAge();
    }
    @GetMapping("/income")
    public List<Map<String,Object>> findIncome(){
        return tbPeopleService.findIncome();
    }

}
